// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///C:/Users/kuroba/Desktop/daojiao/2309-vue-pc/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/kuroba/Desktop/daojiao/2309-vue-pc/node_modules/@vitejs/plugin-vue/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///C:/Users/kuroba/Desktop/daojiao/2309-vue-pc/vite.config.js";
var vite_config_default = defineConfig({
  plugins: [vue()],
  resolve: {
    // 路径别名配置
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    /**
     * 代理跨域的配置
     */
    proxy: {
      "/api": {
        target: "http://123.207.68.172:8099",
        // 目标地址
        // target: "http://192.168.110.44:8089",
        changeOrigin: true,
        // 用于修改目标地址目标接受的请求头中的host字段的值
        rewrite: (path) => path.replace("^/api", "")
        // 路径重写
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxrdXJvYmFcXFxcRGVza3RvcFxcXFxkYW9qaWFvXFxcXDIzMDktdnVlLXBjXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxrdXJvYmFcXFxcRGVza3RvcFxcXFxkYW9qaWFvXFxcXDIzMDktdnVlLXBjXFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9DOi9Vc2Vycy9rdXJvYmEvRGVza3RvcC9kYW9qaWFvLzIzMDktdnVlLXBjL3ZpdGUuY29uZmlnLmp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